package com.ruoyi.vote.admin.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动 - 证书模板业务对象 vote_certificate
 *
 * @author 筑巢
 * @date 2023-07-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class VoteCertificateBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 证书名
     */
    @NotBlank(message = "证书名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 证书图片
     */
    private String pic;

    /**
     * 证书内容
     */
    private String content;

    /**
     * 证书类型（0电子  1纸质）
     */
//    @NotNull(message = "证书类型（0电子  1纸质）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer cType;

    /**
     * 证书状态
     */
    @NotNull(message = "证书状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


}
